deploy{
  final DeploymentUnit deploymentUnit=phaseContext.getDeploymentUnit();
  final Module module=deploymentUnit.getAttachment(Attachments.MODULE);
  if (!JaxrsDeploymentMarker.isJaxrsDeployment(deploymentUnit)) {
  if (!DeploymentTypeMarker.isType(DeploymentType.WAR,deploymentUnit)) {
  final DeploymentUnit parent=deploymentUnit.getParent() == null ? deploymentUnit : deploymentUnit.getParent();
  final WarMetaData warMetaData=deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY);
  final JBossWebMetaData webdata=warMetaData.getMergedJBossWebMetaData();
  try {
    module.getClassLoader().loadClass(CDI_INJECTOR_FACTORY_CLASS);
    if (WeldDeploymentMarker.isPartOfWeldDeployment(deploymentUnit)) {
        final List<Metadata<Extension>> extensions=parent.getAttachmentList(WeldAttachments.PORTABLE_EXTENSIONS);
        for (        Metadata<Extension> extension : extensions) {
          if (extension.getValue() instanceof ResteasyCdiExtension) {
          final ClassLoader classLoader=SecurityActions.getContextClassLoader();
          try {
            SecurityActions.setContextClassLoader(ResteasyCdiExtension.class.getClassLoader());
            final ResteasyCdiExtension ext=new ResteasyCdiExtension();
            Metadata<Extension> metadata=new Metadata<Extension>(){
              @Override public Extension getValue(){
                return ext;
            parent.addToAttachmentList(WeldAttachments.PORTABLE_EXTENSIONS,metadata);
            SecurityActions.setContextClassLoader(classLoader);
 catch (  ClassNotFoundException ignored) {
}
getValue{ }
getLocation{
}
setContextParameter{
  ParamValueMetaData param=new ParamValueMetaData();
  param.setParamName(name);
  param.setParamValue(value);
  List<ParamValueMetaData> params=webdata.getContextParams();
  if (params == null) {
    params=new ArrayList<ParamValueMetaData>();
    webdata.setContextParams(params);
  params.add(param);
}
undeploy{ }
